InterceptUrlRequestCallback

The callback is invoked when a URL request is about to be sent out.

The callback can be used to intercept a URL request and send a URL response as it was sent from a web server or let the engine decide how to process the URL request.

Types

Link copied to clipboard
interface Params
The parameters of the InterceptUrlRequestCallback.
Link copied to clipboard
interface Response

Functions

Link copied to clipboard
abstract fun on(params: P): R
Invoked when the callback needs a response of type R that may be determined based on the provided callback parameters.